<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="org.liufeng.course.util.*"%>
<%@ page language="java"
	import="java.sql.*,java.net.*,java.util.*,java.text.*,java.io.*,java.net.*"%>
<%
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String name = request.getParameter("name").trim();
String cont = URLDecoder.decode(request.getParameter("cont"),"UTF-8");
String realPath = request.getRealPath("/")+"pic/";
System.out.println(cont);
//String realPath = "d:/";

erweimaUtil.getMain(realPath,cont,name);

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta name="viewport"
	content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<html>
<head>
<base href="<%=basePath%>">

<title>二维码信息</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
	jQuery.ajaxSetup ({
	   		 cache:false
	    })
	</script>
</head>

<body>
	<img src="<%=basePath+"pic/"+name+".gif" %>"></img>
</body>
</html>
